<template>
  <div class="main">
    <div class="top"></div>
    <div class="mid">
      <div class="word">注册</div>
      <el-form :model="form" label-width="60px" style="width: 300px">
        <el-form-item label="姓名">
          <el-input v-model="input" placeholder="请输入姓名" />
        </el-form-item>
        <el-form-item label="身份证">
          <el-input v-model="input" placeholder="请输入身份证" />
        </el-form-item>
        <el-form-item label="密码">
          <el-input v-model="input" placeholder="请输入密码" />
        </el-form-item>
      </el-form>
      <div class="center">
        <el-button type="primary" color="#DBEBE1">注册</el-button>
        <el-button @click="cancel"
          >取消</el-button
        >
      </div>
    </div>
    <div class="bottom"></div>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {};
  },
  methods: {
    cancel() {
      this.$router.push({ path: '/' })
      this.$store.commit('setTopBar', 0 )
    }
  },
};
</script>

<style scoped>
.main {
  width: 100vw;
  height: 100vh;
  background: url(@/assets/10.jpg) no-repeat;
  background-size: 100% 100%;
  background-attachment: fixed;
}

.top {
  width: 100%;
  height: 80px;
}

.word {
  text-align: center;
  font-size: 50px;
  color: rgb(255, 255, 255);
}

.center {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.mid {
  width: 350px;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 40px 40px 40px 40px;
}

.bottom {
  width: 100%;
  height: 240px;
}
</style>